import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    token: "",
    userInfo:{},
    loginInfo: {},
  },
  mutations: {
    setToken(state,data) {
      state.token = data;
    },
    setUserInfo(state,data) {
      state.userInfo = data;
    },
    setLoginInfo(state,data) {
      state.loginInfo = data;
    }
  },
  actions: {

  }
})

export default store